package com.xqboss.apps.convert.order;

import com.xqboss.apps.domain.order.OrderMain;
import com.xqboss.apps.domain.order.PayApply;
import com.xqboss.apps.vo.order.AppOrderDetailVo;
import com.xqboss.apps.vo.order.AppOrderListVo;
import com.xqboss.apps.vo.order.WebOrderDetailVo;
import com.xqboss.apps.vo.sys.SysUserVo;
import com.xqboss.apps.vo.user.UserNFTItemVo;
import com.xqboss.common.core.domain.entity.SysUser;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.TargetType;
import org.mapstruct.ValueMapping;

import java.util.List;

/**
 * @author Trent
 * @date 2023/8/29
 */

@Mapper(componentModel = "spring")
public interface OrderConverter {

    AppOrderListVo toAppOrderListVo(OrderMain orderMain);

    List<AppOrderListVo> toAppOrderListVoList(List<OrderMain> orderList);

    AppOrderDetailVo toAppOrderDetailVo(OrderMain orderDetail, List<UserNFTItemVo> nftList);

    WebOrderDetailVo toWebOrderDetailVo(OrderMain orderDetail, List<UserNFTItemVo> nftList);
}
